package edu.gdkm.pay;
//测试类（带main方法）
public class TeacherTest {
    public static void main(String[] args) {

        int i;
        i=0;
        Teacher teacher = null;
        teacher = new Teacher();    //实例化对象
//        Teacher teacher = new Teacher();
        teacher.setTeacherId ("100001");  //通过.符号调用属性和方法
        teacher.setName ("张三");
        teacher.setSex ("男");
        teacher.setSalary (3000);
        teacher.setWage (500);
        teacher.print();
        System.out.println("总收入："+teacher.total());

        Teacher teacher1 =new Teacher("10002","李四","女");
        teacher1.print();
        System.out.println("总收入："+teacher1.total());


    }
}
